
import pagination from '@/views/pagination'  //分页组件
import dialogForm from './edit'
import agentHttp from '@/utils/agentHttp.js'
export default {
  components:{dialogForm,pagination},
  name: 'firstTrial',
  created(){ 
      this.seachData()
  },
  data() {
  	return { 
      //表格字段
      tableData: [{}],

      //弹窗状态值
      isAdd:{bool:true},
      dialogFormVisible: {bool:false},
      query:{index:""},
      carOrderId:"",
      formLabelWidth:'120px',
      searchForm:{}
        
  	}
  },
  methods: {
      seachData(){
        var params={};
        params.page=this.tableData.page||1;
        params.rows=this.tableData.rows||10;
        agentHttp.get('adminApi/admin/car_order/first_audit_order/view',params ).then((data)=>{
              if(data.success){
                this.tableData = data.data;
              } 
        })
      },
      handleEdit(index, row){ 
        this.isAdd.bool=true;
        this.query.index=index;
        this.dialogFormVisible.bool=true;
        this.carOrderId = row.id;


      },
      handleSee(index, row){
        this.isAdd.bool=false;
        this.query.index=index;
        this.dialogFormVisible.bool=true;
        this.carOrderId = row.id;
      }
     
  }
}
